package com.yf.daofactory;
import org.hibernate.Session;
import org.hibernate.cfg.Configuration;

public class SessionFactory {
	
		public static Session getSession() {
			Session session = null;
			session = new Configuration().configure().buildSessionFactory()
					.openSession();
			return session;
		
	}


}
